package com.emergency.evaluate;

import com.emergency.common.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by lijie on 2019/9/23.
 * 评估系统
 */
@SpringBootApplication
@EnableSwagger2
@EntityScan(basePackages={"com.emergency.***.domain"})
public class EvaluateApplication {
    public static void main(String[] args) {
        SpringApplication.run(EvaluateApplication.class);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker ( 1,1 );
}
}
